package org.csu.forum.domain.VO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.csu.forum.domain.PO.Account;
import org.csu.forum.domain.PO.Login;
import org.csu.forum.domain.PO.Post;
import org.csu.forum.domain.PO.ReplyContent;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Data
@Component

public class ReplyCheckVO implements Serializable {

    @JsonIgnore
    private ReplyContent replyContent;

    @JsonIgnore
    private Post post;

    private int postid;

    private int replyid;

    private String replycontents;

    private int replyerid;

    private Date time;

    private String postcontent;

    private int fileid;

    private int zoneid;

    public ReplyCheckVO(){
        this.post = new Post();
        this.replyContent = new ReplyContent();
    }

    public ReplyContent getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(ReplyContent replyContent) {
        this.replyContent = replyContent;
    }

    public Post getPost() {
        return post;
    }

    public void setPost(Post post) {
        this.post = post;
    }

    public void setParameter(){

        this.postid = this.post.getPostid();
        this.postcontent = this.post.getContent();
        this.fileid = this.post.getFileid();
        this.zoneid = this.post.getZoneid();
        this.time = this.replyContent.getTime();
        this.replyid = this.replyContent.getReplyid();
        this.replyerid = this.replyContent.getReplyerid();
        this.replycontents = this.replyContent.getContent();

    }


}
